// components/goods-item/index.ts
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    goods: {
      type: Object,
      value: {
        id: 1,
        titlepic: "",
        title: "",
        desc: "",
        price: 0,
        origin_price: 0
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    toPage(){
      wx.navigateTo({
        url: '/pages/mall/package/detail?id' + this.properties.goods.id,
      })
    }
  }
})
